from fastapi import APIRouter

router = APIRouter(tags=["用户模块"])


@router.get("/users/", summary="获取所有用户信息", description="")
async def read_users():
    return [{"username": "Rick"}, {"username": "Morty"}]


@router.get("/users/me", summary="读取个人信息")
async def read_user_me():
    return {"username": "fakecurrentuser"}


@router.get("/users/{username}", summary="读取指定用户信息")
async def read_user(username: str):
    return {"username": username}
